import request from '@/utils/request'

// 获取课程下所有视频
export function getVideoListService(courseId) {
  return request({
    url: '/video/list',
    method: 'get',
    params: { courseId }
  })
}

// 获取视频详情
export function getVideoDetailService(videoId, courseId) {
  return request({
    url: `/video/${videoId}`,
    method: 'get',
    params: { videoId, courseId }
  })
}